package com.whq.thrift.api.common.thriftserver;

import com.whq.thrift.api.common.constants.CommonErrorCodeConstants;

public class ResponseBase {
	private int returnCode = 0;
	private String returnMsg = "";
	
	public ResponseBase() {
		
	}
	
	public ResponseBase(int returnCode) {
		this(returnCode, CommonErrorCodeConstants.MAP_ERR_CODE_MSG.get(returnCode));
	}
	
	public ResponseBase(int returnCode, String returnMsg) {
		this.returnCode = returnCode;
		this.returnMsg = returnMsg;
	}

	public int getReturnCode() {
		return returnCode;
	}

	public void setReturnCode(int returnCode) {
		this.returnCode = returnCode;
	}

	public String getReturnMsg() {
		return returnMsg;
	}

	public void setReturnMsg(String returnMsg) {
		this.returnMsg = returnMsg;
	}

}
